const query = require("../db/db");

class UserModel {
  //查询用户名是否存在
  async getUserName(userName) {
    return await query(`SELECT * FROM user WHERE name = '${userName}'`);
  }
}


module.exports = new UserModel();